package com.sh.caryr.erp.entity.user;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * <p>
 * 用户权限
 * </p>
 *
 * @author cary
 * @since 2017-12-09
 */
@TableName("erp_user_role_auth")
@Data
@AllArgsConstructor
public class UserRoleAuth {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    public String authTarget;

    public String authActvt;

    public String authField;

    public String authValue;

    public UserRoleAuth() {

    }

    public UserRoleAuth(String target, String actvt, String field, String value) {
        this.authTarget = target;
        this.authActvt = actvt;
        this.authField = field;
        this.authValue = value;
    }
}